INDEXSound Functions -- Detailed Descriptions(1) Initialization of Sound Functions void m4aSoundInit(void); (2) Setting Up the Sound Function Operating Modes void m4aSoundMode(u32 mode); (3) Sound Driver Main Loop void m4aSoundMain(void); (4) Sound DMA Session Settings void m4aSoundVSync(void); (5) Stopping the Sound DMA void m4aSoundVSyncOff(void); (6) Restarting the Sound DMA void m4aSoundVSyncOn(void); (7) Starting a Performance Using a Song Title void m4aMPlayStart(MusicPlayerArea *&m4a_mplay???, SongHeader *SongName); (8) Starting a Performance Using a Song Number void m4aSongNumStart(u16 n); (9) Starting or Changing a Performance Using a Song Number void m4aSongNumStartOrChange(u16 n); (10) Starting or Restarting a Performance Using a Song Number void m4aSongNumStartOrContinue(u16 n); (11) Stopping (Pausing) a Song Performance void m4aMPlayStop(MusicPlayerArea *&m4a_mplay???); (12) Stopping (Pausing) a Performance Using a Song Number void m4aSongNumStop(u16 n); (13) Stopping (Pausing) the Performance of All Songs void m4aMPlayAllStop(void); (14) Restarting a Song Performance void m4aMPlayContinue(MusicPlayerArea *&m4a_mplay???); (15) Restarting a Performance Using a Song Number void m4aSongNumContinue(u16 n); (16) Restarting All Song Performances void m4aMPlayAllContinue(void); (17) Fading Out Songs void m4aMPlayFadeOut(MusicPlayerArea *&m4a_mplay???, u16 sp); (18) Changing the Tempo void m4aMPlayTempoControl(MusicPlayerArea *&m4a_mplay???, u16 te); (19) Changing the Volume void m4aMPlayVolumeControl(MusicPlayerArea *&m4a_mplay???, u16 tb, u16 vo); (20) Changing the Scale void m4aMPlayPitchControl(MusicPlayerArea *&m4a_mplay???, u16 tb, s16 pi); (21) Changing the Normal Position void m4aMPlayPanpotControl(MusicPlayerArea *&m4a_mplay???, u16 tb, s8 pa); (22) Changing the Modulation Depth void m4aMPlayModDepthSet(MusicPlayerArea *&m4a_mplay???, u16 tb, u8 md); (23) Changing the LFO Speed void m4aMPlayLFOSpeedSet(MusicPlayerArea *&m4a_mplay???, u16 tb, u8 ls); (24) Immediately Initialize the Song that is Going to Play void m4aMPlayImmInit(MusicPlayerArea *&m4a_mplay???); (25) Other Variables |
(1) Initialization of Sound Functions void m4aSoundInit(void);
This initializes the sound functions. Only call this once when starting
up a game.
|
(2) Setting Up the Sound Function Operating Modes void m4aSoundMode(u32 mode);
This sets up the sound function operating modes. The argument, mode,
contains the following values.
*Direct Sound ReverbUse the external variable sound_mode_i to return the operating mode to its original settings. (Program Example)
|
(14) Restarting a Song Performance void m4aMPlayContinue(MusicPlayerArea *&m4a_mplay???);
This restarts the song being played by the Music Player number ???. (??? is a three-digit number.) |
(16) Restarting All Song Performances void m4aMPlayAllContinue(void);
All Music Players (set up using this system) will resume playing. |
(24) Immediately Initialize the Song that is Going to Play void m4aMPlayImmInit(MusicPlayerArea *&m4a_mplay???);
This immediately initializes the parameters of each track for the song you plan on performing with Music Player number ???.(??? is a three digit number) |
(25) Other VariablesThe following constants are declared as usable variables with the sound driver.u8 total_mplay_n Total number of declared Music Players.u8 total_song_n Total number of declared SongsReturn to Top |